import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * This class makes reference to all kind of bullets used on the game.
 * 
 * @author (Arturo Aaron Rios Obregon) 
 * @version (25 june 2013)
 */
public class Bala extends Actor
{
    private int damage;
    
    /**
     * Constructor
     */
    public Bala(int dm)
    {
        damage=dm;
    }
    
    /**
     * Act - do whatever the Balas wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        // Add your action code here.
    }  
    
    /**
     * Return the damage that cause the bullet.
     */
    public int getDamage()
    {
        return damage;
    }
    
    /**
     * This method makes move the rockets.
     */
    public void mueve()
    {
        int x=getX(), y= getY();
        setLocation(x,y-2);
    }
}
